package com.token.utils;

import java.util.UUID;

/**
 * @author: henriy
 * @Date: 2024/9/18
 */
public class RandomValueUtils {

    static char[] abc = new char[]{
            '1', '2', '3', '4', '5', '6', '7', '8', '9', '0',
            'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
            'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'
    };

    public static void main(String[] args) {
        String uuid = UUID.randomUUID()
                .toString()
                .replaceAll("-", "");
        System.out.println("uuid===" + uuid);
        System.out.println();
        for (int i = 1; i <= 1; i++) {
            String copilot = UUID.randomUUID()
                    .toString()
                    .replaceAll("-", "");

            String backseat = UUID.randomUUID()
                    .toString()
                    .replaceAll("-", "");

            System.out.println("副驾：" + copilot + " 后座：" + backseat);
        }

        //for (int i = 0; i <= 12; i++) {
        //    System.out.println(NanoId.randomNanoId(null, abc, 8));
        //}

    }
}
